import { Simple ,RecordLevelValidation, PlatForm} from '../pages';
import { Navigate } from 'react-router-dom';

export const defaultPageKey = 'react-final-form/simple';

export const routes = [
    {
        path: '/react-final-form',
        element: <PlatForm />,
        children: [
            {
                path: '/react-final-form/simple',
                element: <Simple />
            },
            {
                path: '/react-final-form/RecordLevelValidation',
                element: <RecordLevelValidation/>
            }
        ]
    },
    {
        path: '/',
        element: <Navigate to={`/${defaultPageKey}`} />
    }
];
